﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using HRMS_Model;
using DataManager;

namespace HRMS.Models
{
    public class Degrees
    {
        public static void AddDegree(Degree degree)
        {
            using (var degEntity = new HRMSEntities())
            {
                degEntity.Degrees.AddObject(degree);
                degEntity.SaveChanges();
            }

        }
        public static List<Degree> GetDegrees()
        {
            using (var degEntity = new HRMSEntities())
            {
                return degEntity.Degrees.ToList();
            }
        }

    }
}